package com.hwang.demo2.practice;

public class random {
    public static void main(String[] args) {
        int i = 0;
        while (i<=3){
            double dou = Math.random();
            System.out.println("dou = " + dou);
            i++;
        }
        for (i = 0;i<10;i++){
            double dou = Math.random() * 10;
            System.out.println("dou = " + dou);
            int a = (int)(dou + 1 );
            System.out.println("a = " + a);
        }
        int b = (int)(Math.random()*3)+1;
        System.out.println(b);
    }
}
